dnl Process this file with autoconf to produce a configure script.
AC_INIT(guile.c)
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL

dnl
dnl Get the plug-ins...
dnl

dnl Plug-in cflags:
dnl
xtra_cflags=
xtra_libs=
xtra_dependencies=
for f in $srcdir/../*/PLUGIN/GUILE.config; do
	. $f
done

dnl Plug-in inits
dnl
cat  $srcdir/../*/PLUGIN/GUILE.inits /dev/null | tsort | sed -e "s/$/();/" > initplugs.c

dnl Plug-in libs
dnl
plugin_libs=`cat  $srcdir/../*/PLUGIN/GUILE.libs /dev/null | tsort | xargs echo`

AC_SUBST(xtra_cflags)
AC_SUBST(xtra_libs)
AC_SUBST(xtra_dependencies)
AC_SUBST(plugin_libs)
AC_OUTPUT(Makefile)
